package com.share.shareplatform.sharereward.dao;

import com.share.shareplatform.pojo.Reward;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RewardDao {
    Long addOne(Reward reward);

    Integer updateBaseOne(Reward reward);

    Integer deleteAllByIds(List<Long> ids);

    Reward findOneById(Long id);
    List<Reward> findPage(@Param("start")Integer start, @Param("pageSize")Integer pageSize);//分页查询

    List<Reward> findAllByIds(List<Long> ids);
    List<Reward> findAllByUserId(Long id);
    List<Reward> findAll();
}
